/*
Date:20210527 15:54PM
key:直接异或结果有几个1
*/
class Solution {
public:
    int hammingDistance(int x, int y) 
    {
        int re=0;
        int z=x^y;
        for(int i=0;i<32;i++)
        {
            if((z&1))
            {
                re++;
            }
            z=z>>1;

        }
        return re;
    }
};